package com.devicestatus.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author MeowParse
 * @date 2017/8/15.
 */
@Entity
@Table(name = "device")
public class Device {

	@Column(name = "id")
	@Id
	private String id;
	@Column(name = "mac")
	private String mac;
	@Column(name = "product_id")
	private String productId;
	@Column(name = "online")
	private Integer online;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public java.lang.Integer getOnline() {
		return online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}
}
